
public abstract class Figure {
	double dim1;
	double dim2;
	
	
	Figure(double dim1, double dim2){
		this.dim1 = dim1;
		this.dim2 = dim2;
	}
	
	Figure(double dim3){
		this.dim1 = this.dim2 = dim3;
	}
	abstract double area();
	

}
